﻿using Coldairarrow.Business.Company;
using Coldairarrow.Entity.Company;
using Coldairarrow.Util;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Api.Controllers.backstage
{
    [Route("/backstage/[controller]/[action]")]
    public class FTS_CompanyController : BaseApiController
    {
        #region DI

        public FTS_CompanyController(IBTB_CompanyBusiness bTB_CompanyBus)
        {
            _bTB_CompanyBus = bTB_CompanyBus;
        }

        IBTB_CompanyBusiness _bTB_CompanyBus { get; }

        #endregion

        #region 获取
        /// <summary>
        /// 站点信息
        /// </summary>
        /// <returns></returns>
      [HttpPost]
      [NoCheckJWT]
       public async Task<List<BTB_Company>> GetCompany()
        {
            return await _bTB_CompanyBus.GetCompany();
        }
        #endregion
    }
}